﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D41 RID: 3393
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlaySkillBrief : IMessage<PlaySkillBrief>, IMessage, IEquatable<PlaySkillBrief>, IDeepCloneable<PlaySkillBrief>, IBufferMessage
	{
		// Token: 0x17002B12 RID: 11026
		// (get) Token: 0x0600984C RID: 38988 RVA: 0x00197353 File Offset: 0x00195553
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlaySkillBrief> Parser
		{
			get
			{
				return PlaySkillBrief._parser;
			}
		}

		// Token: 0x17002B13 RID: 11027
		// (get) Token: 0x0600984D RID: 38989 RVA: 0x0019735A File Offset: 0x0019555A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlaySkillBriefReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B14 RID: 11028
		// (get) Token: 0x0600984E RID: 38990 RVA: 0x0019736C File Offset: 0x0019556C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlaySkillBrief.Descriptor;
			}
		}

		// Token: 0x0600984F RID: 38991 RVA: 0x00197373 File Offset: 0x00195573
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlaySkillBrief()
		{
		}

		// Token: 0x06009850 RID: 38992 RVA: 0x0019737B File Offset: 0x0019557B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlaySkillBrief(PlaySkillBrief other) : this()
		{
			this.skillType_ = other.skillType_;
			this.skillId_ = other.skillId_;
			this.skillParam_ = other.skillParam_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009851 RID: 38993 RVA: 0x001973B8 File Offset: 0x001955B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlaySkillBrief Clone()
		{
			return new PlaySkillBrief(this);
		}

		// Token: 0x17002B15 RID: 11029
		// (get) Token: 0x06009852 RID: 38994 RVA: 0x001973C0 File Offset: 0x001955C0
		// (set) Token: 0x06009853 RID: 38995 RVA: 0x001973C8 File Offset: 0x001955C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyMtSkillBriefType SkillType
		{
			get
			{
				return this.skillType_;
			}
			set
			{
				this.skillType_ = value;
			}
		}

		// Token: 0x17002B16 RID: 11030
		// (get) Token: 0x06009854 RID: 38996 RVA: 0x001973D1 File Offset: 0x001955D1
		// (set) Token: 0x06009855 RID: 38997 RVA: 0x001973D9 File Offset: 0x001955D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillId
		{
			get
			{
				return this.skillId_;
			}
			set
			{
				this.skillId_ = value;
			}
		}

		// Token: 0x17002B17 RID: 11031
		// (get) Token: 0x06009856 RID: 38998 RVA: 0x001973E2 File Offset: 0x001955E2
		// (set) Token: 0x06009857 RID: 38999 RVA: 0x001973EA File Offset: 0x001955EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillParam
		{
			get
			{
				return this.skillParam_;
			}
			set
			{
				this.skillParam_ = value;
			}
		}

		// Token: 0x06009858 RID: 39000 RVA: 0x001973F3 File Offset: 0x001955F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlaySkillBrief);
		}

		// Token: 0x06009859 RID: 39001 RVA: 0x00197404 File Offset: 0x00195604
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlaySkillBrief other)
		{
			return other != null && (other == this || (this.SkillType == other.SkillType && this.SkillId == other.SkillId && this.SkillParam == other.SkillParam && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600985A RID: 39002 RVA: 0x00197460 File Offset: 0x00195660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SkillType != TrainPartyMtSkillBriefType.KMtSkillNone)
			{
				num ^= this.SkillType.GetHashCode();
			}
			if (this.SkillId != 0U)
			{
				num ^= this.SkillId.GetHashCode();
			}
			if (this.SkillParam != 0U)
			{
				num ^= this.SkillParam.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600985B RID: 39003 RVA: 0x001974D7 File Offset: 0x001956D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600985C RID: 39004 RVA: 0x001974DF File Offset: 0x001956DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600985D RID: 39005 RVA: 0x001974E8 File Offset: 0x001956E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SkillParam != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.SkillParam);
			}
			if (this.SkillId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.SkillId);
			}
			if (this.SkillType != TrainPartyMtSkillBriefType.KMtSkillNone)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.SkillType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600985E RID: 39006 RVA: 0x00197560 File Offset: 0x00195760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SkillType != TrainPartyMtSkillBriefType.KMtSkillNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.SkillType);
			}
			if (this.SkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillId);
			}
			if (this.SkillParam != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillParam);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600985F RID: 39007 RVA: 0x001975D0 File Offset: 0x001957D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlaySkillBrief other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SkillType != TrainPartyMtSkillBriefType.KMtSkillNone)
			{
				this.SkillType = other.SkillType;
			}
			if (other.SkillId != 0U)
			{
				this.SkillId = other.SkillId;
			}
			if (other.SkillParam != 0U)
			{
				this.SkillParam = other.SkillParam;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009860 RID: 39008 RVA: 0x00197634 File Offset: 0x00195834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009861 RID: 39009 RVA: 0x00197640 File Offset: 0x00195840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 32U)
					{
						if (num != 40U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.SkillType = (TrainPartyMtSkillBriefType)input.ReadEnum();
						}
					}
					else
					{
						this.SkillId = input.ReadUInt32();
					}
				}
				else
				{
					this.SkillParam = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003AA7 RID: 15015
		private static readonly MessageParser<PlaySkillBrief> _parser = new MessageParser<PlaySkillBrief>(() => new PlaySkillBrief());

		// Token: 0x04003AA8 RID: 15016
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003AA9 RID: 15017
		public const int SkillTypeFieldNumber = 5;

		// Token: 0x04003AAA RID: 15018
		private TrainPartyMtSkillBriefType skillType_;

		// Token: 0x04003AAB RID: 15019
		public const int SkillIdFieldNumber = 4;

		// Token: 0x04003AAC RID: 15020
		private uint skillId_;

		// Token: 0x04003AAD RID: 15021
		public const int SkillParamFieldNumber = 2;

		// Token: 0x04003AAE RID: 15022
		private uint skillParam_;
	}
}
